<!--
 * @Author: your name
 * @Date: 2021-12-14 10:15:46
 * @LastEditTime: 2021-12-14 16:19:25
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \a2021final-project\src\views\first.vue
-->
<template>
  <div class="main">
      <van-button plain hairline type="danger" @click="go">立即开启</van-button>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="grey">
      <van-swipe-item><img src="../assets/img/z.png" alt="" /></van-swipe-item>
      <van-swipe-item><img src="../assets/img/x.png" alt="" /></van-swipe-item>
      <van-swipe-item><img src="../assets/img/c.png" alt="" /></van-swipe-item>
      <van-swipe-item><img src="../assets/img/v.png" alt="" /></van-swipe-item>
    </van-swipe>
    
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },
  watch: {},
  props: {},
  components: {},
  computed: {},
  mounted() {},
  methods: {
    go(){
      this.$router.replace({name:'login'})
    }
  },
  filters: {},
};
</script>

<style scoped lang='less'>
.main {
  width: 100%;
  height: 100%;
  .van-button{
      width: 180px;
      margin: auto;
      position: absolute;
      z-index: 999;
      bottom: 90px;
      left: 50%;
      margin-left: -90px;
  }
  .my-swipe {
    .van-swipe__track {
      .van-swipe-item {
        //  line-height: 150px;
        // width: 10px;
        // height: 10px;
        // margin-bottom: 10px;
        // border: 1px solid black;
        img {
          width: 100%;
          object-fit: fill;
        }
      }
    }
    /deep/ .van-swipe__indicators {
      width: 180px;
       margin-left: 36px;
      margin-bottom: 50px;
      .van-swipe__indicator {
        border: 1px solid #000;        
      }
    }
  }
}
</style>